import { SchemaNodeKey } from "@/utils/constants";
import DeviceConfig from "./DeviceConfig";
import SensorConfig from "./SensorConfig";
/**
 * 详情分类导航，根据Scheme描述分类信息
 */
//根据Schema绘制分类导航
export default defineComponent({
	setup() {
		onMounted(() => {});
		const active = ref(SchemaNodeKey.extNavDeviceConfig);
		return () => {
			return (
				<el-tabs class="gateway-plc-tabs" v-model={active.value}>
					<el-tab-pane label="下位机参数" name={SchemaNodeKey.extNavDeviceConfig}>
						<DeviceConfig style="margin-top:-20px" />
					</el-tab-pane>
					<el-tab-pane label="下位机变量" name={SchemaNodeKey.extNavSensorConfig}>
						<SensorConfig style="margin-top:-20px" />
					</el-tab-pane>
				</el-tabs>
			);
		};
	}
});
